import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
// 储存有无网络状态
const store = new Vuex.Store({
	state: {
		networkType: Vue.$networkType,
		currentTabbar: 0,
		username:"sss"
	},
	mutations: {
		SetNetworkType(state, value) {
			state.networkType = value
		},
		SetCurrentTabbar(state, value) {
			state.currentTabbar = value
		}
	}
})
export default store;
